import { ConfigProviderThemeVars } from "@taroify/core";

export type ThemeType = "light" | "dark" | "purple" | "tiktok" | "other";
export type SensitiveWordType =
  | "diyi"
  | "meinv"
  | "mixin"
  | "yixue"
  | "zhengzhi"
  | "other";

export interface PagerType {
  pageSize: number;
  pageNum: number;
  likeName?: string;
}
export interface THEME extends ConfigProviderThemeVars {
  baseColor: string;
  backgroundColor: string;
  titleColor: string;
  rateIconFullColor?: string;
  sliderTrackHeight?: string;
  sliderButtonWidth?: string;
  sliderButtonHeight?: string;
  sliderActiveBackgroundColor?: string;
  buttonPrimaryBorderColor?: string;
  buttonPrimaryBackgroundColor?: string;
  [key: string]: any;
}

export interface ArticleType {
  kid: string; // 唯一标识符
  userId?: string; // 用户ID
  parentId?: string; // 板块Id
  aiteUserName?: string; // 被艾特的用户明
  aiteUserId?: string; // 被艾特的用户ID
  title?: string; // 帖子标题
  context?: string; // 帖子内容
  contextUrl?: string; // 图片和视频链接
  uploadThumbnail?: string; // 视频缩略图
  uploadType?: string; // 上传视频后缀名类型
  selectedFlag?: "0" | "1" | "2" | "3"; // 精选标记
  typeFlag?: "0" | "1" | "2"; // 帖子类型
  sectorFlag?: "1" | "2" | "3"; // 用户角色标记
  topUp?: "0" | "1"; // 置顶标记
  tagName?: string; // 帖子标签
  readCount?: number; // 阅读量
  delFlag?: "0" | "1"; // 删除标记
  createId?: string; // 创建者ID
  updateId?: string; // 更新者ID
  createTime?: string; // 创建时间
  updateTime?: string; // 更新时间
  likeCount?: number; // 点赞数
}

export interface ArticleCardType {
  user: UserType;
  article: ArticleType;
}

export interface UserType {
  address: string;
  avatar: string;
  beginTime?: string;
  blackGround: string;
  code?: string;
  collegeName?: string;
  createTime?: Array<number>;
  email: string;
  endTime?: string;
  gender?: string;
  ipAddr?: string;
  kid: string;
  lastLogin?: Array<number>;
  likeName?: string;
  likeNumber?: string;
  limitFlag?: string;
  majorName?: string;
  openId?: string;
  password: string;
  phone: string;
  roleIs?: string;
  schoolName?: string;
  sex?: string;
  signature?: string;
  studentId?: string;
  title?: string;
  updateTime?: Array<number>;
  username: string;
}

export interface SectorType {
  /**
   * 审核之后返回的内容
   */
  checkContext?: string;
  /**
   * 0-待审核,1-成功,2-驳回
   */
  checkFlag?: number;
  createId?: string;
  kid: string;
  /**
   * 帖子数量
   */
  postCount?: number;
  /**
   * 版块名
   */
  sectorName?: string;
  /**
   * 版块规则
   */
  sectorRule?: string;
  /**
   * 版块简介
   */
  sectorSynopsis?: string;
  /**
   * 版块标签
   */
  sectorTagId?: string;
  /**
   * 版块头像
   */
  sectorUrl?: string;
  /**
   * 粉丝关注数量
   */
  starCount?: number;
  /**
   * 版块所属者
   */
  userId?: string;
  userInfo?: UserType;
  [property: string]: any;
}
